<template>
  <div id="main">
    <ul>
      <li v-for="(value,key,index) in bookdetail" :key="index" @touchstart="golisteningbook">
        <div class="play-btn">
          <div class="right-arrow"></div>
        </div>
        <div class="bookthings">
          <p class="books">{{value.name}}:{{value.title}}</p>
          <div class="booktime">
            <img src="@/assets/我的/u4395.png" alt />
            <span>{{value.time}}</span>
          </div>
        </div>
        <img  src="@/assets/书城/分割线_u3221.png" />
      </li>
    </ul>
    <div class="bottom">
      <div>
        <hr />
        <span>我是有底线的</span>
        <hr />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      bookdetail: {
        book1: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book2: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book3: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book4: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book5: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book6: { name: "000素书", title: "中国谋略第一书", time: "05:10" },
        book7: { name: "000素书", title: "中国谋略第一书", time: "05:10" }
      }
    };
  },
  methods: {
    golisteningbook(){
      this.$router.push({
        path:'/listening'
      },()=>{})
    }
  }
};
</script>
<style lang="less" scoped>
#main {
  ul {
    list-style-type: none;
    li {
      overflow: hidden;
      padding-top: 1rem;
      padding-left: 1.5rem;
      .play-btn {
        float: left;
        width: 2.4rem;
        height: 2.4rem;
        background: url("@/assets/书城/椭圆形_u3236.png") no-repeat;
        position: relative;
        border-radius: 50%;
        overflow: hidden;
        margin-left: .5rem;
        .right-arrow {
          height: 0rem;
          width: 0rem;
          border: .9rem solid #000;
          border-top-color: #000;
          border-bottom-color: #000;
          border-left-color: white;
          border-right-color: #000;
          position: absolute;
          left: 50%;
          top: 50%;
          transform: translate(-14%, -50%);
        }
      }
      .bookthings {
        float: left;
        padding-top: .2rem;
        margin-left: .5rem;
        p {
          font-family: "PingFangSC-Regular", "PingFang SC";
          font-weight: 400;
          font-style: normal;
          font-size: 1.4rem;
          color: #000000;
          text-align: left;
          line-height: 2.6rem;
        }
        .booktime {
          font-family: "PingFangSC-Regular", "PingFang SC";
          font-weight: 400;
          font-style: normal;
          font-size: 1.2rem;
          color: #999999;
          text-align: left;
          line-height: 2.6rem;
          overflow: hidden;
          img,
          span {
            float: left;
          }
          img {
            margin-right: .2rem;
            margin-top: .4rem;
          }
        }
      }
    }
  }
  .bottom {
    width: 100%;
    height: 11.6rem;
    font-size: 1.2rem;
    color: #CCCCCC;
    padding-top: 2rem;
    div {
      font-family: "SourceHanSansSC-Normal", "思源黑体 Normal", "思源黑体";
      font-weight: 400;
      font-style: normal;
      text-align: left;
      height: 1.65rem;
      line-height: 1.65rem;
      position: relative;
      span{
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
      }
      hr:nth-of-type(1) {
        position: absolute;
        width: 10rem;
        top: 50%;
        left: 3rem;
        transform: translateY(-50%);
        border: .1rem solid #f2f2f2;
      }
      hr:nth-of-type(2) {
        position: absolute;
        width: 10rem;
        top: 50%;
        right: 3rem;
        transform: translateY(-50%);
        border: .1rem solid #f2f2f2;
      }
    }
  }
}
</style>